<template>
  <div>
    <!-- <Test/> -->
    <router-view></router-view>
  </div>
</template>

<script lang="ts" setup>
// import Test from '@/views/test.vue';
import ThemeColor from "@/utils/themeColor.ts";
import { onMounted } from "vue";
onMounted(() => {
  ThemeColor();
  // 针对Safari
  console.log(navigator.userAgent);
  if (
    navigator.userAgent.indexOf("Safari") != -1 &&
    navigator.userAgent.indexOf("Mac") != -1 &&
    navigator.userAgent.indexOf("Chrome") == -1
  ) {
    // console.log('Safari on Mac detected, applying class...');
    document.body.classList.add("safari-mac"); // provide a class for the safari-mac specific css to filter with
  }
});
</script>

<style lang="scss"></style>
